package cn.kmsoft.gistool.gpkg;

import cn.kmsoft.stgeometry.landm.FieldInfo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * GpkgTemplate模板对象，包括表名，字段定义，坐标投影等
 * 
 * @author cqwensten 2020-08-05
 *  email:cqwensten@163.com 
 *
 */
public class GpkgTemplate implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;//表序号0,1,2...
	private String templateId;//模板编号，对应数据库中的模板ID
	private String tableName;//表名称
	private long srsId;//投影信息epsg	
	//tableName对应下所有的字段定义
	private List<FieldInfo> fieldInfos = new ArrayList<FieldInfo>();
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTemplateId() {
		return templateId;
	}
	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}	
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	public long getSrsId() {
		return srsId;
	}
	public void setSrsId(long srsId) {
		this.srsId = srsId;
	}
	public List<FieldInfo> getFieldInfos() {
		return fieldInfos;
	}
}
